ITK Programmer's Guide |
|||||||||
Table of contents |
Intro | General
| TCP Low Level |
TCP High Level |
UDP | DNS
| PPP
|
ITK_Addr2Name |
|||||||||||||||||||||
Syntax: |
hostName := ITK_Addr2Name(hostaddr;options)
|
||||||||||||||||||||
Description: |
Translates an IP address (stored as a Long Integer) into its corresponding "network name" (a string). ITK_Addr2Name accepts an options flag to specify the desired result format. |
||||||||||||||||||||
Params: |
|
||||||||||||||||||||
Example: |
$addr := ITK_Name2Addr("www.internet-toolkit.com") $name := ITK_Addr2Name($addr) ` should return something like "server.cquest.org" $dotted := ITK_Addr2Name($addr;2) ` should return "194.2.244.11" |
ITK_Name2Addr |
|||||||||||||||||||||
Syntax: |
hostAddr := ITK_Name2Addr(hostName;option)
|
||||||||||||||||||||
Description: |
Translates an address into its corresponding IP address,
i.e.: server1.jca.fr -> 194.2.244.11 An option flag can allow you to use DNS load balancing. This flag can be used to specify which address you want if more than one address is returned for the given host name by the DNS.
|
||||||||||||||||||||
Params: |
|
||||||||||||||||||||
Example: |
$addr := ITK_Name2Addr("www.internet-toolkit.com") $addr := ITK_Name2Addr("www.internet-toolkit.com";-1) ` use DNS load balancing (random choice) $addr := ITK_Name2Addr("www.internet-toolkit.com";2) ` get 2nd Address (may return 0) |